﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<div id="cart_${product.id}" class="cart-detail panel panel-default">
	<div class="panel-heading">
		<input type="checkbox" name="p_id" value="${product.id}" onclick="cartCalculateTotal()" /> 
		<a href="detail?id=${product.id}" target="_blank">${product.name}</a>
		<div class="fr">
			<a href="javascript:void(0);" title="从购物车删除该商品"
				onclick="deleteFromCart(event,${product.id})"><span
				class="glyphicon glyphicon-trash"></span>&nbsp;删除</a>
		</div>
	</div>
	<div class="panel-body">
		<div class="col-xs-12 col-sm-7 p0">
			<div class="col-xs-12 col-sm-4 p0">
				<a href="detail?id=${product.id}" target="_blank"><img src="${ALIYUNOSSURL}${product.indexImg}"></a>
			</div>
			<div class="col-xs-12 col-sm-8 select-radio p0  pt5">
					<div>${product.name}</div>
					<s:iterator value="attrs">
						<a href="javascript:void(0);" class="fl">${name}</a>
					</s:iterator>
			</div>
		</div>
		<div class="col-xs-2 col-sm-1 p0 pt10"><span id="price_${product.id}">${product.truePrice}</span>￥</div>
		<div class="col-xs-2 col-sm-1 p0 pt10">
			<span id="total_${product.id}" class="F40 f14 fb">${total}</span>
		</div>
		<div class="col-xs-8 col-sm-3 p0 pt10">
				<div class="remainder fr">&nbsp;&nbsp;&nbsp;&nbsp;库存${product.remainder}件</div>
				<div class="pro-det-num fr">
					<div class="fl">
						<a href="javascript:void(0);" onclick="cartMinNum('${product.id}')"> <i
							class="iconfont">&#xe60e;</i> </a>
					</div>
					<div class="tb-text fl">
						<input id="num_${product.id}" name="p_num_${product.id}" type="text"
							onkeyup="carCheckNumber('${product.id}',${product.remainder})" value="${num}"
							maxlength="8">
					</div>
					<div class="fl">
						<a href="javascript:void(0)"
							onclick="cartAddNum('${product.id}',${product.remainder})"> 
							<i class="iconfont">&#xe604;</i>
						</a>
					</div>
				</div>
		</div>
	</div>


</div>